package com.nmsl.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.nmsl.system.mapper.JinEmployeeMapper;
import com.nmsl.system.domain.JinEmployee;
import com.nmsl.system.service.IJinEmployeeService;

/**
 * 员工列表Service业务层处理
 * 
 * @author jin
 * @date 2025-02-18
 */
@Service
public class JinEmployeeServiceImpl implements IJinEmployeeService 
{
    @Autowired
    private JinEmployeeMapper jinEmployeeMapper;

    /**
     * 查询员工列表
     * 
     * @param id 员工列表主键
     * @return 员工列表
     */
    @Override
    public JinEmployee selectJinEmployeeById(Long id)
    {
        return jinEmployeeMapper.selectJinEmployeeById(id);
    }

    /**
     * 查询员工列表列表
     * 
     * @param jinEmployee 员工列表
     * @return 员工列表
     */
    @Override
    public List<JinEmployee> selectJinEmployeeList(JinEmployee jinEmployee)
    {
        return jinEmployeeMapper.selectJinEmployeeList(jinEmployee);
    }

    /**
     * 新增员工列表
     * 
     * @param jinEmployee 员工列表
     * @return 结果
     */
    @Override
    public int insertJinEmployee(JinEmployee jinEmployee)
    {
        return jinEmployeeMapper.insertJinEmployee(jinEmployee);
    }

    /**
     * 修改员工列表
     * 
     * @param jinEmployee 员工列表
     * @return 结果
     */
    @Override
    public int updateJinEmployee(JinEmployee jinEmployee)
    {
        return jinEmployeeMapper.updateJinEmployee(jinEmployee);
    }

    /**
     * 批量删除员工列表
     * 
     * @param ids 需要删除的员工列表主键
     * @return 结果
     */
    @Override
    public int deleteJinEmployeeByIds(Long[] ids)
    {
        return jinEmployeeMapper.deleteJinEmployeeByIds(ids);
    }

    /**
     * 删除员工列表信息
     * 
     * @param id 员工列表主键
     * @return 结果
     */
    @Override
    public int deleteJinEmployeeById(Long id)
    {
        return jinEmployeeMapper.deleteJinEmployeeById(id);
    }
}
